# Metview Macro

# read the netCDF file
nc = read("fc_12.nc")

# set the current variable to be t2m and print its values
setcurrent(nc, 't2m')
netcdf_auto_scale_values(1) # 1 means 'on', 0 means 'off'
vals = values(nc)
print(vals)
print('max: ', maxvalue(vals))
print('min: ', minvalue(vals))

# set the current variable to be time and print its values
setcurrent(nc, 'time')
netcdf_auto_translate_times(1)  # 1 means 'on', 0 means 'off'
times = values(nc)
print(times)
